package com.slg.android.manyanime.bean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by E540 on 2015/3/12.
 */
public class Category {
    private String id;
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void paresJson(JSONObject object) {
        try {
            id = object.getString("id");
            name = object.getString("name");

        } catch (JSONException e) {
            e.printStackTrace();
        }


    }

}
